import { Cookie, enums, Lockr } from '../../utils'

const state = {
  messageListCount: 0,
  messageList: []
}
const getters = {
  getMessageListCount: (state) => {
    return state.messageListCount;
  },
  getMessageList: state => {
    return state.messageList;
  }
}
const mutations = {
  updateMessageListCount (state, num) {
    state.messageListCount = num;
  },
  updateMessageList(state, list) {
    state.messageList = list;
  }
}
const actions = {
  update_messageListCount({commit}, num) {
    commit('updateMessageListCount', num);
  },
  update_messageList({commit}, list) {
    commit('updateMessageList', list);
  }
}

export default {
  state,
  getters,
  mutations,
  actions
}
